var  mySwiper = new Swiper(".container1" , {
    //循环
    loop:true,
    //分页器
    pagination:{
         el:'.swiper-pagination',
         loop:true,
         //分页器滑动
         hideOnClick :false,
         clickable:true,
         //分页器样式
         bulletClass:'swiper-pagination-bulle',
        //  bulletActiveClass: 'my-bullet-active',
        },
    //自动播放
    autoplay:{
        delay: 5000
    }
})
var  mySwiper2 = new Swiper(".container2" , {
    //循环
    loop:true,
    //自动播放 
    autoplay:true
})




$(".slider_media a").hide();
$(".slider_media a").eq(0).show();


var  mySwiper3 = new Swiper(".container3" , {
    slidesPerView : 3,
    spaceBetween : 20,
     navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    autoplay:true,
    on: {
        slideChangeTransitionStart: function(){
          $(".slider_media a").hide();
          $(".slider_media a").eq((this.activeIndex-1)%2).fadeIn(300);
        }
    }
})



